﻿
CREATE PROCEDURE [dbo].[OPM_ReturnOrderHeader_IsExist]
(
	@WangWangId  nvarchar(50),
	@CustomerCellphone nvarchar(50)
)

AS

DECLARE @TempId int

SELECT @TempId=[Id] FROM dbo.[OPM_ReturnOrderHeader] WHERE [WangWangId] = @WangWangId OR [CustomerCellphone] = @CustomerCellphone

IF @TempId IS NULL
	RETURN 0
ELSE
	RETURN 1